package com.wh.weibo.mapper;

import com.wh.weibo.model.UserTopicFollow;

import java.util.List;

public interface UserTopicFollowMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserTopicFollow record);

    int insertSelective(UserTopicFollow record);

    UserTopicFollow selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserTopicFollow record);

    int updateByPrimaryKey(UserTopicFollow record);

    /**
     * 根据微博话题ID 获取对应的用户关注信息
     * @param topicId
     * @return
     */
    List<UserTopicFollow> listFollowByTopicId(Integer topicId);
}